package com.yeqian.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author : yeqian
 * @Date : 2020/12/24 21:19
 * <p>
 * 用户实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "user")
public class Admin implements Serializable {
    /**
     * 用户id
     */
    @Id
    private Integer id;
    /**
     * 姓名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 加密盐
     */
    private String salt;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 性别
     */
    private String sex;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 头像
     */
    @Column(name = "user_avatar")
    private String userAvatar;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 最近登陆时间
     */
    @Column(name = "recent_login")
    private Date recentLogin;
}
